## 模板1
import os

env = None
# 1.编译器
if os.system("which clang"):
    env = Environment()
else:
    # clang编译器
    env = Environment(tools=["default", "clang"])
    env["CC"] = ["clang"]
    env["CXX"] = ["clang++"]

env["PROGSUFFIX"] = ".out"            # 可执行后缀.out
env["CCFLAGS"] = " -g3 -O0 -Wall"  # gdb 调试开关

workDir=".."
env["CPPPATH"]=[f"{workDir}/include"]
env['LIBS']=["dict"]
env["LIBPATH"]=[f"{workDir}/gear-lib/output/linux/debug/lib/gear-lib"]
env["RPATH"]=[f"{workDir}/gear-lib/output/linux/debug/lib/gear-lib"]
src_list = [
    "1_test_dict.c",
]

for src in src_list:
    env.Program(Split(src))
